package com.yunxie.novelservice.domain.convert;

import com.yunxie.novelservice.domain.entity.NovelDetailsBo;
import com.yunxie.novelservice.infra.basic.entity.NovelDetails;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 小说详情BO转换
 */
@Mapper
public interface NovelDetailsBoConverter {
    NovelDetailsBoConverter INSTANCE =  Mappers.getMapper(NovelDetailsBoConverter.class);
    NovelDetails convertBoToDetails(NovelDetailsBo novelDetailsBo);
    NovelDetailsBo convertEntityToBo(NovelDetails novelDetails);
}
